import request from '@/utils/request'

export function getChargeTypes() {
  return request({
    url: '/api/charge-types',
    method: 'get'
  })
}

export function postCharges(data) {
  return request({
    url: '/api/user/charges',
    method: 'post',
    data
  })
}


export function checkChargeIsPaid(id) {
  return request({
    url: '/api/user/charges/' + id + '/check',
    method: 'get'
  })
}
